package io.xiaojl.xj2ee.modules.sys.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import io.xiaojl.xj2ee.modules.sys.entity.SysRoleMenuEntity;

@Mapper
public interface SysRoleMenuEntityMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SysRoleMenuEntity record);

    int insertSelective(SysRoleMenuEntity record);

    SysRoleMenuEntity selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysRoleMenuEntity record);

    int updateByPrimaryKey(SysRoleMenuEntity record);

	/**  
	 * <p>Title: queryMenuIdList</p>  
	 *
	 * <p>Description: </p>  
	 *
	 * @param roleId
	 * @return  
	 */ 
	List<Long> queryMenuIdList(Long roleId);

	/**  
	 * <p>Title: deleteBatch</p>  
	 *
	 * <p>Description: </p>  
	 *
	 * @param roleIds
	 * @return  
	 */ 
	int deleteBatch(Long[] roleIds);

	/**  
	 * <p>Title: deleteByMenuId</p>  
	 *
	 * <p>Description: </p>  
	 *
	 * @param menuId  
	 */ 
	void deleteByMenuId(Long menuId);
}